import polars as pl

# 1.一维数组
s = pl.Series("ints",[1,2,4,5])
print(s)
'''
shape: (4,)
Series: 'ints' [i64]
[
        1
        2
        4
        5
]
'''

# 2.指定类型
s_uints = pl.Series("uints",[1,2,4,5],dtype=pl.UInt32)
s_float = pl.Series("floats",[1.0,2.0,4.0,5.0],dtype=pl.Float64)
print(s_uints.dtype,s_float.dtype)
'''
UInt32 Float64
'''